import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入全局样式
import './assets/style/bace.css'
import './assets/font/style.css'
//客服服务模块js文件
// import './views/service'

Vue.config.productionTip = false

new Vue({
        router,
        store,
        render: h => h(App),
    }).$mount('#app')
    // 动态获取网页标题
router.afterEach((to, from) => {
    // console.log('afterEach',to,from)
    if (to.meta.title) {
        document.title = to.meta.title //修改网页的title
    } else {
        document.title = '金融超市'
    }
})